<%--
  Created by IntelliJ IDEA.
  User: 沐硕
  Date: 2024/3/15
  Time: 9:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="../layui-v2.9.10/layui/css/layui.css"/>
    <script src="../layui-v2.9.10/layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <style>
        .layui-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-image: url("../background1/image/back-image.jpg");
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: cover;
            background-position: center;
            padding: 50px;
        }
        .layui-input-block {
            width: 100%;

        }
        .title {
            font-family: "FangSong", sans-serif;
            font-size: 20px;
            padding: 20px 0 50px 0;
            letter-spacing: 2px; /* 字体间距 */
            text-align: center; /* 文字居中 */
        }
        .login-box {
            padding: 20px;
            width: 300px;
            text-align: center;
            background-color: rgba(255, 255, 255, 0.9);
            border: 2px solid black;
            border-top-left-radius: 15px;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 10px;
            border-bottom-left-radius: 20px;
        }
        .layui-btn {
            width: 100%;
        }
        .layui-form-radio {
            display: inline-block; /* 设置单选框为内联元素 */
            margin-right: 10px; /* 设置单选框之间的间距 */
        }
    </style>
</head>
<body>
<div class="layui-container">
    <div class="login-box">
        <form class="layui-form" action="../login.do" method="post">
            <div class="title"><h2>在线商城系统</h2></div>
            <div class="layui-form-item">

                    <input type="text" name="username" required lay-verify="required" placeholder="用户名" autocomplete="off" class="layui-input">

            </div>
            <div class="layui-form-item">

                    <input type="password" name="password" required lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input">

            </div>

                <div class=".layui-form-radio ">
                    <input type="radio" name="userType" value="0" title="买家" checked>
                    <input type="radio" name="userType" value="1" title="卖家" >
                    <input type="radio" name="userType" value="2" title="管理员">
                </div>

            <div class="layui-form-item">
                <button class="layui-btn layui-btn-normal" type="submit">登录</button>
            </div>
            <div class="layui-form-item">
                <button class="layui-btn layui-btn-primary" type="button" onclick="window.location.href = 'register-2.jsp';">注册</button>
            </div>
        </form>
    </div>
</div>
<script>
layui.use('form', function(){
var form = layui.form;
form.render();
});
</script>
</body>
</html>
